//
//  LoginViewController.h
//  CPICApp
//
//  Created by sinosoft on 13-3-8.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CustomActionSheet.h"
#import "MBProgressHUD.h"
#import "SinaWeibo.h"
#import "SinaWeiboRequest.h"
#import <TencentOpenAPI/TencentOAuth.h>

@interface LoginViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,UICustomActionSheetDelegate,SinaWeiboDelegate, SinaWeiboRequestDelegate,TencentSessionDelegate>
{
    NSMutableArray *arrUser;
    NSMutableArray *arrLoginType;
    NSMutableArray *arrLoginCity;
    NSString *strLoginCityCode;
    
    BOOL showProgress;
    MBProgressHUD* progress;
    
    BOOL bindingSina;//YES 表示已经绑定了的了,NO表示还没绑定
    BOOL bindingQQ;//YES 表示已经绑定的了,NO表示还没绑定


    NSString *strUserAccount;
    NSString *strUserAccountQQSina;
    NSString *strUserNameQQSina;
    //sinaweibo
    NSDictionary *userInfo;
    NSArray *statuses;
    NSString *postStatusText;
    NSString *postImageStatusText;
    //sinaweibo
    
    //qq
    TencentOAuth* _tencentOAuth;
    NSMutableArray* _permissions;
    NSString *QQAccessToken;
    NSString *QQopenId;
    //qq
}
@property(nonatomic,retain)UITextField *txtUserAccount;
@property(nonatomic,retain)UITextField *txtUserPassword;
@property(nonatomic,retain)UITextField *txtLoginType;
@property(nonatomic,retain)UITextField *txtLoginCity;

@property(nonatomic,retain)UITableView *TableViewUser;
@property(nonatomic,retain)UITableView *TableViewCity;
@property (strong, nonatomic) MBProgressHUD* progress;

@property(nonatomic)BOOL touchSina;
@property(nonatomic)BOOL touchQQ;
@end
